/* Includes ------------------------------------------------------------------*/
#include "compare.h"

/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro --------------------------------------------------------------*/
/* Private variables ----------------------------------------------------------*/
/* Private function prototypes ------------------------------------------------*/
/*******************************************************************************************

  * @brief  LoopBuffer_Handle
  * @param  array1: array1 pointer
            array2: array1 pointer
            length
  * @retval the result of compare, true or false
  * @remark 

********************************************************************************************/
bool Array_IsSame(void *array1, void *array2, size_t length)
{
    int i=0;
    for(i = 0; i<length; i++)
    {
        if(((uint8_t*)array1)[i] != ((uint8_t*)array2)[i])
        {   break;  }
    }
    
    return (i == length);
}
